package com.tianjiancloud.exception;

/**
 * Created by Yan on 2015/2/1.
 */
public enum ExceptionCode {

    /**
     * Service error 3XXX
     * Not found: 4XXX
     * Invalid operator 5XXX
     */
    UNKNOWN(0),
    SERVICE_ERROR(3000),
    NOT_FOUND(4000), NOT_FOUND_USER(4001),
    INVALID_OPERATOR(5000),INVALID_EMAIL(5001),INVALID_MOBILE(5002),INVALID_CODE(5003);


    ExceptionCode(Integer code){
        this.code = code;
    }

    private Integer code;

    public Integer getCode() {
        return code;
    }


}
